<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>账号管理</title>
</head>
<body data-id="26">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span> 权限管理  <span class="c-gray en">&gt;</span> 账号管理 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <form class="ml-20 mr-20" id="accounts"    method="post">
        <div class="bg-1 bk-gray mt-10 pb-10 clearfix">
            <div class="lh-30 mb-10 pt-20">
                <table class="table-hover table_li ml-10 mb-10 table">
                    <thead class="text-l">
                    <tr>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">工号/姓名：</label>
                                <div class="formControls col-xs-8 col-sm-7">
                                    <input type="text" class="input-text radius"  id="NU" name="NU"  placeholder="这里输入工号/姓名">
                                </div>
                            </div>
                        </td>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">电话：</label>
                                <div class="formControls col-xs-8 col-sm-9">
                                    <input type="text" class="input-text radius"  id="PHONE" name="PHONE" placeholder="这里输入电话">
                                </div>
                            </div>
                        </td>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5">部门编码/名称：</label>
                                <div class="formControls col-xs-8 col-sm-7">
                                    <input type="text" class="input-text radius"  id="BM" name="BM"  placeholder="这里输入部门编码/名称">
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="col-3-1">
                            <div class="row ml-10" style="width: 341px;">
                            <label class="form-label f-l pt-5">时&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;间&nbsp;&nbsp;：</label>
                            <input type="text" onfocus="WdatePicker()" id="logmin" class="input-text Wdate radius" style="width:120px;">
                            ~
                            <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}' })" id="logmax" class="input-text Wdate radius" style="width:120px;">            </div>
                        </td>
                        <td class="col-3-1"><label style="width: 57px;" class="form-label f-l pt-5">状态：</label><select class="select radius f-l" name="brandclass" id="STUTAS" size="1" style="width:20%; height: 30px;">
                            <option value= "" >状态</option>
                            <option value="0">开启</option>
                            <option value="1">禁用</option>
                        </select>
                        </td>
                        <td class="col-3-1">
                            <div class="row ml-10">
                                <label class="form-label f-l pt-5" style="margin-left: 43px;">用户名：</label>
                                <div class="formControls col-xs-8 col-sm-7">
                                    <input type="text" class="input-text radius"  id="USERNAME" name="USERNAME"  placeholder="这里输入用户名">
                                </div>
                            </div>
                        </td>
                    </tr>
                    </thead>
                </table>
            </div>
            <div class="text-c">
                <!--<input type="button" class="btn btn-secondary radius size-S" onclick="user_add('新增','account-add.html')" value="&nbsp;新&nbsp;&nbsp;增&nbsp;">-->
                <input type="button" class="btn radius size-S ml-10 powerButton 1000001954909102" onclick="user_cha()" href="javascript:void(0);" value="&nbsp;查&nbsp;&nbsp;询&nbsp;">
                <input name="" type="reset" class="btn radius size-S ml-10 powerButton 1000001954909102" value="&nbsp;重&nbsp;&nbsp;置&nbsp;">
                <input name="" type="reset" class="btn radius size-S ml-10 powerButton 1000001954909102" onclick="addUser('添加用户','add_user.html')"  value="&nbsp;添&nbsp;&nbsp;加&nbsp;">
            </div>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable">
                <thead>
                <tr class="text-c">
                    <th width="70">用户信息</th>
                    <th width="50">角色</th>
                    <th width="50">部门</th>
                    <th width="50">电话</th>
                    <th width="60">邮箱</th>
                    <th width="50">创建时间</th>
                    <th width="50">入职时间</th>
                    <th width="50">状态</th>
                    <th width="50">操作</th>
                </tr>
                </thead>
                <tbody class="shun">
                </tbody>
            </table>
        </div>
    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../ht-js/access/account.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>
<script>

    function addUser(title, url) {
        levelId = 0;
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }
    //查询
    function user_cha(){
        $.ajax({
            type: "POST",
            url: root.accessInter.access_user_listUsersApi,
            xhrFields:{withCredentials:true,credentials:true},
            cache: false,  //禁用缓存
            dataType: "json",
            data: {
                NU:$("#NU").val(),
                PHONE:$("#PHONE").val(),
                BM:$("#BM").val(),
                entryTimeStart:$("#logmin").val(),
                entryTimeEnd:$("#logmax").val(),
                STATUS: $("#STUTAS").val(),
                USERNAME:$("#USERNAME").val(),
            },  //传入组装的参数
            success: function (data) {
                accountList(data);
            },
            error: function (XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest);
            }
        });
    }

    $("#accounts").validate({
        rules: {
            PHONE: {
                isDigits: true,
            },
        },
    });
    web.user_list();


</script>
</body>
</html>